Adding support for fauxton behind a rewrite in a couchapp

Adding rewrite rules to the couchapp.
Generalizing the asset_root as the couchapp might be installed in many different locations, same with the base element.