Refactoring UI angular code.

    - Moved all ui html into view pages under the views directory.
    - Seperated all controllers into controllers directory.
    - Moved all logic into corresponding services under the services directory.
    - Added templates directory for directive templates.
    - Added directives directory.
    - Closes #101, #102, and #109.