Get structure and logic functioning. TODO: get uglify and ngAnnotate working