Transactions - Controller updated to allow for user filter selections and passing to API for data query

Hey @rcrichton. Please have a look at these changes when you have a chance. Thanks
Hey @rcrichton. Ive updated the jquery code to use scope instead. Ive also just added a small function at the bottom of the controller which i think might be useful to include throughout the project. When an API call fails it just passes the error code through the function and updates the alert box to inform the user of what went wrong