Open this up in a text editor and start customising, instructions are included.
v1.1: Removed Layer API code, as only one function was needed and it was easier to place it inline.
v1.0: Initial public release