fix(avatar): keep cancel/save btns disabled after avatar upload

SD-224
fix(avatar): change current user avatar only if matches selected

SD-78
fix(avatar): disable converting data url to blob

server doesn't handle it neither so no need for this

SD-78
fix(users): refactor user and profile page styles

+ remove old styling
+ refactor css
+ refactor html
fix(style): global styles update

- global styles improvements
- remove inset shadow from buttons when active state
refactor(main): make it return bootstrap function

instead of putting modules into main.js it's setting it in index
refactor(main): remove global config
feat(media): Media plugin

SD-232: refactor archive to use new api
refactor(require): make building superdesk- modules automatic
fix(build): fix path after renaming
feat(media): add media uploader ui

+ Remove sdGridLayout directive
+ Add upload media modal to media app
feat(media): add upload controller

SD-231
feat(media): improve ui
fix(users) : hide hints when inserting new user

Remove hints for "required" fields when creating new user, and instead
of hints, show asteriks
fix(users): hide required fields on user preview

Show "required" field only when it is required, not always
feat(users): add user list sorting

+ change sd-sort directive
+ add sd-sort directive to user list

SD-242
fix(tests): add missing filter into spec
fix(media): get media upload url via api
fix(intent): close modal on route change
fix(media): make select btn work with hidden input