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