the $resource url works in both dev and prod

This was done by creating a Noteslap service with a baseUrl property
that sniffs the url for 'localhost'.