[CHANGE] ActiveRecord - sinatra/activerecord only works with activerecord >= 4.0
[CHANGE] Spec - controller test, test database setup, set ENV
[CHANGE] Spec - use database_cleaner
[NEW] ActiveRecord - validation and specs; removed deprecation, write database calls to log
[NEW] Form - batch update, and specs
[CHANGE] Device - redirect if URL present, if not, render registration