Main ui

@liorhar 

sorry for the delay - forgot to press the "Create pull request" button :)
we use the Underscore javascript lib for object/collection manipulation.