set up api versioning with subdomain

- create ApiConstraints class to make default version with or w/o
	specifying in header
- tweaked application.rb to autoload lib