Fixes and changes

Hello,

I made a few changes ad bug fixes if you need them in some other way or have questions about them please give me feedback.

- Fixed exception handling on unicode error
- Fixed failure on empty featrue file
- Fixed base_dir issue
- Added before_file hook
- Added <%tags%> for inserting context values in steps