Fixing whitespace non uniformity with JS files.
Adding missing docstrings, fixing all meaningful pylint warnings.
Added persistence module for messages.