minor rails/ar 4 updates to model and migrations.

adding some default X&O code for initializers and application_controller.

add basic spec files