Changed migrations, rake task and prefs model to properly support preferences within the context of the app.