tools.js: move to lib/tools

change isGlobal() to isGlobalOrUndefined()
models.js: move to lib/models
Merge pull request #54 from asobolev/master

Figures controller / base class for controller tests
Application: end point submission takes now an id
editor.js: the editor app
editor.js: basic editor without post request
models.js: fix guards for missing new in model classes
editor.js: hide uuids as hidden data in the page
editor.js: adapt to new url scheme
Merge branch 'pr/55'

Conflicts:
	conf/routes
model.js: readPropery: handle null sources
model.js: Appending to an array is push() not append()
model.js: Model.fromObject: fix check for prop type is function

And only set the prop if value !== null
Merge pull request #57 from gicmo/modelFixes

Small fixes to model.js

Thanks, LGTM
fixes #56. implemented many to one for figures
Merge remote-tracking branch 'upstream/master'
mode.js: Author: add formatName() for displaying names
classes.less: add enum-with-comma for use in author enum
layout.less: use new enum-with-comma mixin
[css] change abstract from class to id