fixed problem positioning codemirror autocomplete at the end of the window
applying functions to check layers and legends
more steps moving functions to layers model
applying new layer functions to count data layers and legends
added tests for new admin layers
tests for share dialog showing legends and layer-selector depending the number of layers in the visualization - CDB-881 CDB-880 #resolve
CDB-932 #resolve [importer] Do not typecast to date based on column names
Remove old ApiKey model
Remove api_keys table
Add api_key attribute to User model
Start using api_key User attribute, save it to redis when necessary

* Save user metadata to redis after saving to the database
* Generate an api key when the user is created
Stop using User#get_map_key method

It doesn't make sense to read the api_key from Redis anymore since
we have it on the user api_key attribute
Add one regression test on api_key management
CDB-1024 #resolved Rake task to copy api_keys from redis

Copy api_keys from redis to postgres, without regenerating them
and ensuring that there are no users with empty keys
CDB-1080 #resolve [regression] All importable files in a zip bundle should be imported
clean up
CDB-1032 Add notification attribute to users

Adds a new notification attribute, syncs it with Central and allows for
sends it to the UI via user_data
CDB-973 #resolve Properly report error codes when exceptions are raised in the main importer runner execution flow
CDB-1032-notifications #resolves Shows importants notifications sent by the server
Removes unnecesary condition