Added in boostrap functionality and rerouted index to gateway.