Enabled support for custom contexts

Layer.js - added ContextManager class
Layer.js - added Context2d class that is just giving access to standard 2d context from canvas