Rewriting photos page. refactor photocontroller. reimplement angularjs front-end