more refactoring of square.js to pubsub + uiservice. moved some jquery selectors into a new definitions service. added input service, will handle all input from the UI and generate messages accordingly, maybe this makes no sense by using the uiservice, but I need to think how to extend this to use touch instead of only clicks...