Factor out sqlalchemy, fixing circular import problem...

...and decoupling models package from server package. Fixes #22