moved migration from library to database
restructured exceptions to stem from Phire_Exception base
updates to exceptions
Merge branch 'dev' into base-build