Improve metadata handling in activity setup

- Set metadata only if the activity is not resuming
- Set default title using the activity name
- Add "title_set_by_user" metadata
Separate templates in their own files

Using https://github.com/requirejs/text
Karma: add html and css files in graphics, add 'text' module

The previous commit broke tests because the html templates are in
separate files now, and there was no pattern in karma configuration
for them.  Also text module needs to be added manually to the
requirejs configuration.

Also, make the patterns in karma configuration consistent.
Add Object Chooser call
CSS: improve order of rules

According to recess https://github.com/twitter/recess
CSS: remove rule for universal selector *

According to recess
Run lessc
Remove trailing space
Passing first parameter of the array instead of the entire array
Send an error to the callback

When activity.close or object chooser call fails
Set objectId only when needed
Add member jsonrpc to the request object

This is just to apply to JSON-RPC 2.0 specification
http://www.jsonrpc.org/specification
Bus: receive notifications

It follows the JSON-RPC protocol: a notification is similar to a
request except for the id, which is not needed.
Activity: send activityPause and activityStop notifications

Activities can add listeners to those events.  An activity that
handles 'activityStop' can also call event.preventDefault() to prevent
the close, and explicitly call activity.close() after storing.