Refactoring controller and service

move business backend logic to services
Adding WP7 support
see #4