Lock to sinatra ~> 1.3.5 and prepare for 1.4.0 in accepts mapping
Require minimum of activerecord 3.1 (closes #1091)