Added common javascript file for shared elements of SEWI
Added a inheritance helper function
Added a constants object in the global object for magic strings and the like