Moved button-injection code from hook_civicrm_alterContent to hook_civicrm_pageRun.
Specify order of buttons and add CSS to page.
Added basic styles.