move api factory to app.js so it can be re-used by multiple controllers + add flatly theme + nicer tile css