moved migration from library to database
restructured exceptions to stem from Phire_Exception base
updates to exceptions