initial model commit and tidy up
inital commit for $http stuff
consolidated repeated code
Merge pull request #1 from DeclanT/Creating-The-Model

initial model commit and tidy up