Made paths more consistent between client and server and friendly to RequireJS.
Added comments.
Merge pull request #173 from alexindigo/master

Made paths more consistent between client and server and friendly to RequireJS.