Re-organization and adjustment

Re-organized some elements (such as the table buttons on the left),
added some styles, optimized some javascript, re-did some php/SQL
functions, re-did some javascript functions, implemented a Twitter
Bootstrap modal window