Added library module
Added user module, abstracted more functions to library module
Added router module
Merge pull request #3 from rastating/cosmetic/code-cleanup

Cosmetic/code cleanup