Can now be run outside of phar

Removed empir requirement too
Migrations + other fixes