Add bower vendor dir to gitignore
Clean up Entity model class, fix bug in by_name
Add CORS header for GET,HEAD,OPTIONS requests