Map app improvements

Changes:
 - Moved map instance and settings to map directive
 - Cleaned controllers
 - Moved DOM manipulation to directives
 - Small changes and fixes
 - Code style improvements