added better errors
added factory
added picutre and pictures controllers
added route providers