point all routes to index when rest is active
add angular example
pass jshint
simplify config
restructure test app to support config as arg
add and reformat test