full gallery implimentation and clean routes file
convertted main layout to haml, asset_path available in javascrip, title can be set by @title variable