Begin refactor to use transation for DB updates, debug variable issue from last commit, change hrefs to ui-sref
Merge pull request #24 from BaBuDe/moarCleanup

Begin refactor to use transaction for DB updates, debug variable issue fr...