Fixed an issue where a url specified with no gallery gives a 404 instead of using the default view.
Fixed an issue where gallery wasn't processing properly. Allowed no default gallery id to be specified, for error checking.