Changed migration logic

Application searches for migration files in application/ folder and
executes them at once.  Migration info is stored in migration table to
prevent multiple up/down executions.