Error output on new thread

Added an error output in the new thread page.
General clean up in new thread code.
Auth: username, userId returned with token

Send the logged in user's username and userId back with the token on log
in and registration. This is saved to the user's browser for quick
reference in other parts of the code later.

Also general clean up on both client side and server side auth code.
Added User logged In check to new thread

Added a call to Auth.checkAuthentication to check and see if the user is
logged in before they write a new thread and post.
Simplified Registration code and clean up

Simplified the server side registration code by using pre methods to
check whether the given username or email exist or not. Also cleaned up
code on client side to handle registration errors better and deleted an
old register.html file.
Promisify MemDb + moved memdb methods in threads

Added promisified versions of the memDb method into the memStore.js file
so these methods are now global and not just defined in the threads.js
pre file.
General clean up and refactor

Cleaned up and refactored the server side code.
Initial commit for view for managing categories/boards

* Work in progress
* Currently displaying all boards in categories, recurisively with their
childboards (no matter how nested)
* TODO:
  * Add ability to move individual boards up/down
  * Add ability to multi select boards and move to a cat
  * Add ability to insert/modify boards
Optimizing recursion for childboards
Updated view to use plugin from slickage fork of Nestable

* Implemented organizeable boards within categories
* TODO: Serialize array of boards/cats
* TODO: Insert board/category
Rebased Category changes on top of Master.

* Implemented Serialize upon submit
* Implemented Reset
* Implemented Expand All / Collapse all
Updated view layout to include uncategorized boards

* New Boards/Categories can be added
* Can drag from uncategorized boards to categorized boards
Reorganized css and deleted unused css
Added board names to serialized data
Removed boardId and boardName and added board data attr.

* Removed boardId and boardName data attrs and just added entire
 board object to data-board.
* Fix for when there are no uncategorized boards. Show empty placeholer
so categorized boards can be dragged to uncategorized
* TODO: Figure out which boards were moved and which are new
To do this compare the data-board's children to the serialized children
Added code to recursively track changes to board children

* Currently just printing the old/new arrays of children ids
Figure out diff of children ids
Organized code. Added hashmap which tracks moved boards

* Moved boards are now tracked via the movedBoards hashmap
  - movedBoards[movedBoardId] = { oldParent: oldParentId, newParent:
    newParentId };
Updated template to fix responsive design, added font awesome icons
Added api support for updateCategories.
* added support for updating parent_id and children_ids
* Reorganizing categories and top level boards now works
Updated submit process to use promises for each step in submit

* Rebased changes ontop of latest master
* Added css for flagged for addition and flagged for removal
* Using Promises during submit process to ensure all api requests
are completed in the correct order.
* TODO:
  - Implement edit modal
  - Implement add board modal so description can be added
  - Implement core method for moving boards to new parent